package cn.tedu.io;

import java.io.FileOutputStream;
import java.io.IOException;

public class FileAppendDemo {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream("demo.txt",true);
        fos.write("下功夫不够,继续努力".getBytes("UTF-8"));
        fos.write("我期待你的成功".getBytes("UTF-8"));
        System.out.println("写出完毕");
        fos.close();
    }
}
